package com.taxi.servicemap.service;

import com.taxi.common.dto.ResponseResult;
import com.taxi.servicemap.remote.ServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: Ruomeng
 * @Date: 2022/10/6
 * @Description : online-taxi
 * @Version: 1.0
 */
@Service
public class ServiceFromMapService {

    @Autowired
    private ServiceClient serviceClient;

    /**
     * 创建服务
     *
     * @param name
     * @return
     */
    public ResponseResult add(String name) {
        return serviceClient.add(name);
    }
}
